package com.speak.sparkadminserver.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.speak.sparkadminserver.domain.NutRolePower;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @version 1.0
 * @Author Xing
 * @Date 2023/2/17 20:18
 */
@Mapper
public interface NutRolePowerDao extends BaseMapper<NutRolePower> {
    @Select("SELECT power FROM nut_role_power WHERE role_id=#{roleId}")
    public List<Integer> AuthList(@Param("roleId") Long roleId);
}
